package cn.fay.chapter10;

public class Parce15 {

	public Destination destination(String s){
		class PDestination implements Destination{
			private String label;
			private PDestination(String whereTo){
				label=whereTo;
			}
			public String readLabel() {
				return label;
			}
		}
		return new PDestination(s);
	}
	public static void main(String[] args) {
		Parce15 p=new Parce15();
		Destination d=p.destination("Tasmania");
	}

}
interface Destination{
	String readLabel();
}

